/* 
 * File:   Hero.cpp
 * Author: fabienlenoir
 * 
 * Created on September 5, 2009, 4:06 AM
 */

#include "Hero.h"

Hero* Hero::_instance = 0;

Hero::Hero() : Movable() {
}

Hero::Hero(const Hero& orig) {
}

Hero* Hero::instance() {
    if (_instance == 0)
        _instance = new Hero;
    return _instance;
}

void Hero::paint(View* v){
    switch (_facing){
        case DOWN:
            v->drawGraphic(_location->getPosition(), "hero_down");
            break;
        case LEFT:
            v->drawGraphic(_location->getPosition(), "hero_left");
            break;
        case UP:
            v->drawGraphic(_location->getPosition(), "hero_up");
            break;
        case RIGHT:
            v->drawGraphic(_location->getPosition(), "hero_right");
            break;
        default:
            v->drawGraphic(_location->getPosition(), "hero_down");
    }
    
}

Hero::~Hero() {
}
